package cn.wusifx.zabbix.request.builder.screen;

import cn.wusifx.zabbix.request.BaseRequest;
import cn.wusifx.zabbix.request.builder.UpdateRequestBuilder;

import java.util.Map;

/**
 * https://www.zabbix.com/documentation/4.0/manual/api/reference/screenitem/update
 */
public class ScreenItemUpdateRequestBuilder extends UpdateRequestBuilder {
    private String screenItemId;
    public ScreenItemUpdateRequestBuilder(String auth) {
        super("screenitem.update", auth);
    }

    public ScreenItemUpdateRequestBuilder(Long id, String auth) {
        super("screenitem.update", id, auth);
    }

    public String getScreenItemId() {
        return screenItemId;
    }

    public ScreenItemUpdateRequestBuilder setScreenItemId(String screenItemId) {
        this.screenItemId = screenItemId;
        return this;
    }

    @Override
    public BaseRequest<Map<String, Object>> builder() {
        baseRequest.getParams().put("screenitemid",screenItemId);
        return baseRequest;
    }
}
